package com.heima.article.controller.v1;


import com.heima.article.service.ApCollectService;
import com.heima.model.article.dtos.CollectionBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import lombok.RequiredArgsConstructor;
import org.checkerframework.checker.units.qual.Acceleration;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/collection_behavior")
public class ApCollectController {

    private final ApCollectService apCollectService;
    @PostMapping
    public ResponseResult collect(@RequestBody CollectionBehaviorDto dto) {
        return apCollectService.collect(dto);
    }
}
